<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>站点信息列表</title>
<#include "../include/base.ftl">
<script type="text/javascript" src="style/web/js/site.js?v=${version}"></script>
</head>
<body>
	<table id="site-list-box" class="easyui-datagrid" style="width: 100%;"
		toolbar="#site-list-btn" title="站点信息列表" iconCls="icon-save"
			url="site/data" rownumbers="false" singleSelect=true
			pagination="true" pageSize=15 pageList=[15,20,30,40,50] pageNumber=1>
			<thead>
				<tr>
					<th field="id" width="40" align="center">ID</th>
					<th field="ck" width="50" checkbox=true align="center">选择</th>
                    <th field="sitename" width="120">站点名称</th>
                    <th field="domain" width="130">域名</th>
                    <th field="title" width="250">标题</th>
                    <th field="sitepath" width="150">目录</th>
                    <th field="siteType" width="80" formatter="formatType">类别</th>
                    <th field="postType" width="80" formatter="formatPost">发布</th>
                    <th field="template" width="150" align="center">模板</th>
                    <th field="autoPublish" width="80" align="center">自动发文</th>
                    <!-- <th field="cpNo" width="100" align="center">渠道号</th> -->
                    <th field="baiduboxapp" width="100" align="center">百度截流</th>
                    <th field="addDatePath" width="100" align="center">添加日期目录</th>
                    <th field="createTime" width="130" align="center">创建时间</th>
                    <th field="createUser" width="80" align="center">创建人</th>
				</tr>
			</thead>
		</table>
	
		<div id="site-list-btn" class="search-box">
			<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="doSearch()">查询</a>
			<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="javascript:showAddBox();">新增</a>
			<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="javascript:deleteSite();">刪除</a>
			<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="javascript:showEditBox();">修改</a>
			<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-reload" plain="true" onclick="javascript:resetSearchForm();">重置</a>				
			<br/>
            <span class="search-label">名称:</span><input type="text" id="s-sitename" name="sitename" class="easyui-textbox search-input"/>	
            <span class="search-label">域名:</span><input type="text" id="s-domain" name="domain" class="easyui-textbox search-input"/>	
		</div>
	
		<div id="edit-site-box" class="easyui-window add-box" title="站点信息信息维护"
			style="width: 900px; height: 600px; display: none; left: 60px; top: 10px; background: #fafafa;"
		closed="true" modal="true" collapsible="false" minimizable="false"
			maximizable="false" draggable="false" resizable="false">
			<div>
			<form action="site/save" method="post" id="edit-site-form"
				autocomplete="off">
				<input type="hidden" id="id" name="id">
				<table class="form-table">
                   <tr>
		    			<th align="right">站点名称</th>
		    			<td>
		    				<input type="text" id="sitename" name="sitename" class="easyui-textbox add-input" data-options="required:true"/>
		    			</td>
		    			<th align="right">域名</th>
		    			<td>
		    				<input type="text" id="domain" name="domain" class="easyui-textbox add-input" data-options="required:true"/>
		    			</td>
		    		</tr>
                    <tr>
		    			<th align="right">目录</th>
		    			<td>
		    				<input type="text" id="sitepath" name="sitepath" class="easyui-textbox add-input" data-options="required:true"/>
		    			</td>
		    			<th align="right">模板</th>
		    			<td>
		    				<input type="text" id="template" name="template" class="easyui-textbox add-input" data-options="required:true"/>
		    			</td>
		    		</tr>
		    		<!-- <tr>
		    			<th align="right">FTP服务器</th>
		    			<td>
		    				<input type="text" id="ftpServer" name="ftpServer" class="easyui-textbox add-input"/>
		    			</td>
		    			<th align="right">FTP端口</th>
		    			<td>
		    				<input type="text" id="ftpPort" name="ftpPort" class="easyui-textbox add-input"/>
		    			</td>
		    		</tr>
		    		<tr>
		    			<th align="right">FTP用户名</th>
		    			<td>
		    				<input type="text" id="ftpUser" name="ftpUser" class="easyui-textbox add-input"/>
		    			</td>
		    			<th align="right">FTP密码</th>
		    			<td>
		    				<input type="text" id="ftpPassword" name="ftpPassword" class="easyui-textbox add-input"/>
		    			</td>
		    		</tr> -->
		    		<tr>
		    			<th align="right">资讯分页大小</th>
		    			<td>
		    				<input type="text" id="pageSizeArticle" name="pageSizeArticle" value="20" class="easyui-numberbox add-input" data-options="min:10,precision:0"/>（默认20）
		    			</td>
		    			<th align="right">图书分页大小</th>
		    			<td>
		    				<input type="text" id="pageSizeBook" name="pageSizeBook" value="20" class="easyui-numberbox add-input" data-options="min:10,precision:0"/>（默认20）
		    			</td>
		    		</tr>
		    		<!-- OSS模式暂停 -->
	    			<!-- <tr>
		    			<th align="right">OSS AccessKey</th>
		    			<td>
		    				<input type="text" id="ossAccessKeyId" name="ossAccessKeyId" class="easyui-textbox add-input"/>
		    			</td>
		    			<th align="right">OSS AccessKeySecret</th>
		    			<td>
		    				<input type="text" id="ossAccessKeySecret" name="ossAccessKeySecret" class="easyui-textbox add-input"/>
		    			</td>
		    		</tr>
		    		<tr>
		    			<th align="right">OSS Endpoint</th>
		    			<td>
		    				<input type="text" id="ossEndpoint" name="ossEndpoint" class="easyui-textbox add-input"/>
		    			</td>
		    			<th align="right">OSS BucketName </th>
		    			<td>
		    				<input type="text" id="ossBucketName" name="ossBucketName" class="easyui-textbox add-input"/>
		    			</td>
		    		</tr> -->
		    		<tr>
		    			<th align="right">添加日期目录</th>
		    			<td>
		    				<input type="radio" name="addDatePath" value="1" /> 是
		    				<input type="radio" name="addDatePath" value="0" checked="checked"/> 否
		    			</td>
		    			<th align="right">根地址</th>
		    			<td>
		    				<input type="text" id="baseUrl" name="baseUrl" class="easyui-textbox add-input"/>
		    			</td>
		    		</tr>
		    		<tr>
		    			<th align="right">百度Token</th>
		    			<td>
		    				<input type="text" id="baiduToken" name="baiduToken" class="easyui-textbox add-input"/>
		    			</td>
		    			<th align="right">必应Token</th>
		    			<td>
		    				<input type="text" id="bingToken" name="bingToken" class="easyui-textbox add-input"/>
		    			</td>
		    		</tr>
		    		<tr>
		    			<th align="right">神马账号</th>
		    			<td>
		    				<input type="text" id="smName" name="smName" class="easyui-textbox add-input"/>
		    			</td>
		    			<th align="right">神马token</th>
		    			<td>
		    				<input type="text" id="smToken" name="smToken" class="easyui-textbox add-input"/>
		    			</td>
		    		</tr>
		    	    <tr>
		    			<th align="right">发布类别</th>
		    			<td>
		    				<input type="radio" name="postType" value="1" checked="checked"/> 本地
		    				<input type="radio" name="postType" value="2"/> FTP
		    				<input type="radio" name="postType" value="3"/> OSS
		    			</td>
		    			<th align="right">站点类型</th>
		    			<td>
		    				<input type="radio" name="siteType" value="1" checked="checked"/> 资讯
		    				<input type="radio" name="siteType" value="2"/> 小说
		    			</td>
		    		</tr>
	    		   
                   <tr>
                   		<th align="right">自动扩展词</th>
		    			<td>
		    				<input type="radio" name="autoExtendsKey" value="1" /> 是
		    				<input type="radio" name="autoExtendsKey" value="0" checked="checked"/> 否
		    			</td>
		    			<th align="right">自动提交</th>
		    			<td>
		    				<input type="radio" name="autoPost" value="1" /> 是
		    				<input type="radio" name="autoPost" value="0" checked="checked"/> 否
		    			</td>
		    		</tr>
		    		<tr>
                        <th align="right">自动发文</th>
                        <td>
                            <input type="radio" name="autoPublish" value="1" /> 是
                            <input type="radio" name="autoPublish" value="0" checked="checked"/> 否
                        </td>
                        
                        <th align="right">快速推送类别</th>
                        <td>
                            <input type="radio" name="seoType" value="1" />PC端
                            <input type="radio" name="seoType" value="2" checked="checked"/>移动端
                        </td>
                    </tr>
                    <tr>
                        <th align="right">绑定域名</th>
                        <td>
                            <input type="text" id="bindDomain" name="bindDomain" style="height:60px;" class="easyui-textbox add-input wid300" data-options="multiline:true"/>
                        </td>
                        <th align="right">域名token</th>
                        <td>
                            <input type="text" id="bindToken" name="bindToken" style="height:60px;" class="easyui-textbox add-input wid300" data-options="multiline:true"/>
                        </td>
                    </tr>
		    		<tr>
                   		<th align="right">标题</th>
		    			<td>
		    				<input type="text" id="title" name="title" class="easyui-textbox add-input wid300" data-options="required:true"/>
		    			</td>
		    			<th align="right">移动端地址</th>
		    			<td>
		    				<input type="text" id="mBaseUrl" name="mBaseUrl" class="easyui-textbox add-input"/>
		    			</td>
		    	   </tr>
                   <tr>
		    			<th align="right">关键词</th>
		    			<td>
		    				<input type="text" id="keyword" name="keyword" class="easyui-textbox add-input wid300" data-options="required:true"/>;分隔
		    			</td>
	    				<th align="right">列表排序</th>
		    			<td>
		    				<input type="radio" name="listDirect" value="1" checked="checked"/>正序 
		    				<input type="radio" name="listDirect" value="2"/>倒序
		    			</td>
		    		</tr>
                   <tr>
		    			<th align="right">摘要</th>
		    			<td>
		    				<input type="text" id="description" name="description" style="height:60px;" class="easyui-textbox add-input wid300" data-options="required:true,multiline:true,validType:'length[0,500]'"/>
		    			</td>
		    			<th align="right">版权说明</th>
		    			<td>
		    				<input type="text" id="copyright" name="copyright" style="height:60px;" class="easyui-textbox add-input wid300" data-options="multiline:true,validType:'length[0,500]'"/>
		    			</td>
		    		</tr>
		    		<tr>
		    			<th align="right">META验证</th>
		    			<td colspan="3">
		    				<input type="text" id="seoMeta" name="seoMeta" style="height:60px;" class="easyui-textbox add-input wid500" data-options="multiline:true,validType:'length[0,500]'"/>
		    			</td>
		    		</tr>
		    		<tr>
		    			<th align="right">统计代码</th>
		    			<td colspan="3">
		    				<input type="text" id="tongji" name="tongji" style="height:60px;" class="easyui-textbox add-input wid500" data-options="multiline:true"/>
		    			</td>
		    		</tr>
				</table>
		     </form>
		     <br/><br/><br/><br/><br/><br/>
		     <div class="form-buttons">
                 <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-ok" onclick="javascript:submitSaveSite();">提交</a>&nbsp;&nbsp;&nbsp;
                 <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#edit-site-box').dialog('close');">关闭</a>
             </div>
		</div>
	</div>
</body>
</html>
